package com.snap.vseries.base;


import com.snap.vseries.serial.SerialPortHelper;
import com.snap.vseries.ui.CitTestActivity;

public abstract class CitFragment extends BaseFragment {

    protected CitTestActivity getParentActivity() {
        return (CitTestActivity) getActivity();
    }

    protected SerialPortHelper getSerialPortHelper() {
        return getParentActivity().getSerialPortHelper();
    }

    protected boolean isTesting() {
        return getParentActivity().isTesting();
    }

    protected void setTesing(boolean isTesting) {
        getParentActivity().setTesting(isTesting);
    }

    protected void notifyItem(int position) {
        getParentActivity().notifyItem(position);
    }
}
